package com.example.test.原型模式;

import lombok.Data;

import java.io.Serializable;


@Data
public class ProBean implements Cloneable, Serializable {

    private String name;

    private String hj;

    @Override
    protected Object clone()  {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public String toString() {
       return super.toString();
    }
}
